row count in codeigniter

38

row count in codeigniter -

$this->db->where('EmpID >=', 5);
$query = $this->db->get('Employees');
echo $query->num_rows();

// Outputs, 4

Comments

Submit
0 Comments